<?php 
/**
 *   Joomdiet - administrator/components/views/editphysicalactivity/tmpl/default.php
 *   Author: Juan Dapena Paz (juan@bittingbits.com)
 *   Copyright (C) 2010 Bitting Bits S.L.
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

defined('_JEXEC') or die('Restricted access'); ?>
<form action="index.php" method="post" name="adminForm">
<div id="col100">
    <fieldset class="adminform">
        <legend><?php echo JText::_('COM_JOOMDIET_EDIT_LEGEND'); ?></legend>
        <table class="adminform">
            <tr>
                <input type="hidden" name="physical_activity_id" id="physical_activity_id" value="<?php echo $this->row->id; ?>" />
                <td width="100" align="right"><label for="physical_activity_name"><?php echo JText::_('COM_JOOMDIET_PHYSICAL_ACTIVITY_NAME'); ?></label></td>
                <td><input class="text_area" type="text" size="32" maxlength="140" name="physical_activity_name" id="physical_activity_name" value="<?php echo $this->row->name; ?>" /></td>
            </tr>
            <tr>
                <td align="right"><label for="physical_activity_energy"><?php echo JText::_('COM_JOOMDIET_PHYSICAL_ACTIVITY_ENERGY'); ?></label></td>
                <td><input class="text_area" type="text" size="32" maxlength="45" name="physical_activity_energy" id="physical_activity_energy" value="<?php echo $this->row->energy; ?>" /></td>
            </tr>
            <tr>
                <td align="right"><label for="physical_activity_category_tag"><?php echo JText::_('COM_JOOMDIET_PHYSICAL_ACTIVITY_CATEGORY_TAG'); ?></label></td>
                <td>
                    <select name="physical_activity_category_tag" id="physical_activity_category_tag">
                        <?php foreach ($this->category_tags as $k => $tag): ?>
                            <option value="<?php echo $k; ?>"><?php echo JText::_($tag); ?></option>
                        <?php endforeach; ?>
                    </select>
                </td>
            </tr>
        </table>
    </fieldset>
</div>

<input type="hidden" name="option" value="com_joomdiet" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="physicalactivity" />

</form>
